<?php
/**
 * Notice.class.php 图文消息
 *
 * @author camfee <camfee@foxmail.com>
 * @date   18-1-15 下午1:17
 */

namespace Center;

use Common\ModuleBase;
use Common\Bridge;

class Notice extends ModuleBase
{
    protected static $_conf = [
        'db' => [
            'w' => Bridge::DB_CENTER_W,
            'r' => Bridge::DB_CENTER_R
        ],
        'table' => 'Notice',
        'fields' => [
            'Id' => self::VAR_TYPE_KEY,
            'UserId' => self::VAR_TYPE_INT,
            'Title' => self::VAR_TYPE_STRING,
            'Content' => self::VAR_TYPE_STRING,
            'Status' => self::VAR_TYPE_INT,
            'CreateTime' => self::VAR_TYPE_STRING,
        ],
        'mc' => Bridge::MEMCACHE_DEFAULT,
        // 可选, MC KEY, "KeyName:%d", %d会用主键ID替代
        'mckey' => 'Notice:%d',
        // 可选, 超时时间, 默认不过期
        'mctime' => 86400,
    ];

    /**
     * @see ModuleBase::add() 新增
     * @see ModuleBase::update() 更新
     * @see ModuleBase::getInfoByIds() 按id查询
     * @see ModuleBase::getList() 条件查询
     * @see ModuleBase::delete() 删除
     */

}